﻿<%@ Page Title="" Language="C#" MasterPageFile="~/MasterPages/SiteMaster.master" AutoEventWireup="true" CodeBehind="Events.aspx.cs" Inherits="LDW_Eutoliso.Public.Events" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="header_search" runat="Server">
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="login_header" runat="Server">
</asp:Content>
<asp:Content ID="Content4" ContentPlaceHolderID="header_pos_menu" runat="Server">
</asp:Content>
<asp:Content ID="Content5" ContentPlaceHolderID="body_pre_central" runat="Server">
</asp:Content>
<asp:Content ID="Content6" ContentPlaceHolderID="body_central" runat="Server">

    <!-- Start H1 Title -->
    <div class="titlesnormal">

        <h1>Eventos do Eutoliso</h1>



    </div>
    <!-- End H1 Title -->
    <!-- Start Main Body Wrap -->
    <div id="main-wrap">


        <!-- Start Left Section -->
        <div class="leftsection">

            <!-- Start Blog Post -->
            <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" DataSourceID="sqlEvento" CellPadding="0" GridLines="None" AllowPaging="True">
                <Columns>
                     <asp:TemplateField>
                        <ItemTemplate>
                            <div class="blogwrap">
                                <div class="blogtitle">
                                    <h3><a href="#" title="">
                                        <asp:Label ID="lblDescPq" runat="server" Text='<%# Eval("Nome") %>'></asp:Label></a> </h3>
                                </div>
                                <div class="blogbody">
                                    <!-- Start Blog Image -->
                                    <div class="blogimage">
                                        <asp:Image ID="Image1" runat="server" Height="185px" ImageUrl='<%# Eval("Imagem") %>' />
                                    </div>
                                    <!-- End Blog Text -->
                                    <!-- Start Blog Information -->
                                    <div class="bloginfo">
                                        <%--<p class="usericon">
                                            Postado por: <span>
                                                <asp:Label ID="lblUser" runat="server" Text='<%# Eval("Usuarios") %>'></asp:Label></span></p>--%>
                                        <p class="calendericon">
                                            Início: <span>
                                                <asp:Label ID="lblDataInicio" runat="server" Text='<%# Eval("Datainicio", "{0:d}") %>'></asp:Label></span></p>
                                        <p class="calendericon">
                                            Fim: <span>
                                                <asp:Label ID="lblDataFim" runat="server" Text='<%# Eval("Datafim", "{0:d}") %>'></asp:Label></span></p>
                                        <p class="homeicon">
                                            Local: <span>
                                                <asp:Label ID="lblCidade" runat="server" Text='<%# Eval("Cidade") %>'></asp:Label>, <asp:Label ID="lblEstado" runat="server" Text='<%# Eval("Estado") %>'></asp:Label></span></p>
                                         <p class="settingsicon">
                                            Categoria: <span>
                                                <asp:Label ID="lblCategoria" runat="server" Text='<%# Eval("Categoria") %>'></asp:Label></span></p>
                                       <%-- <p class="tagicon">
                                            Tags: <span>Convívios, Festas</span></p>--%>
                                        <br /> <br /><br /><br />
                                    </div>
                                    <!-- End Blog Information -->
                                    <!-- Start Blog Text -->
                                    <div class="blogtext">
                                        <p> <asp:Label ID="Label1" runat="server" Text='<%# Eval("Descricao") %>'></asp:Label></p>
                                        <p class="blogbutton">
                                            <a href="Eventpost.aspx?ID=<%# Eval("Id") %>" class="smallsmoothrectange orangebutton">Fazer comentários</a></p>
                                    </div>
                                    <!-- End Blog Text -->
                                </div>
                            </div>
                        </ItemTemplate>
                    </asp:TemplateField>
                </Columns>
            </asp:GridView>



            <asp:EntityDataSource ID="dsNoticias" runat="server" ConnectionString="name=eutolisodbEntities1" DefaultContainerName="eutolisodbEntities1" EnableDelete="True" EnableFlattening="False" EnableInsert="True" EnableUpdate="True" EntitySetName="lisonoticias">
            </asp:EntityDataSource>
            <asp:SqlDataSource ID="sqlEvento" runat="server" ConnectionString="<%$ ConnectionStrings:eutolisodbConnectionString %>" SelectCommand="SELECT evento.Nome, evento.Datainicio, evento.Datafim, evento.Descricao, evento.Imagem, evento.Video, cidade.Nome AS Cidade, eventocategoria.Nome AS Categoria, estado.Uf AS Estado, estado.Regiao, evento.Id FROM evento INNER JOIN eventocategoria ON evento.Categoria = eventocategoria.Id INNER JOIN cidade ON evento.Cidade = cidade.Id INNER JOIN estado ON cidade.Estado = estado.Id

ORDER BY evento.Datainicio DESC"></asp:SqlDataSource>

            <!-- End Blog Post -->

            <!-- Start Pagination -->
            <div class="blogwrap">

                <div class="blogpagination">

                    <ul>
                        <li><a href="#" title="Start" class="normal">Start</a></li>
                        <li><a href="#" title="Previous" class="normal">&lt;Prev</a></li>
                        <li><a href="#" title="1" class="normal">1</a></li>
                        <li><a href="#" title="2" class="normal">2</a></li>
                        <li><a href="#" title="3" class="normal">3</a></li>
                        <li><a href="#" title="4" class="normal">4</a></li>
                        <li><a href="#" title="5" class="normalactive">5</a></li>
                        <li><a href="#" title="6" class="normal">6</a></li>
                        <li><a href="#" title="7" class="normal">7</a></li>
                        <li><a href="#" title="8" class="normal">8</a></li>
                        <li><a href="#" title="9" class="normal">9</a></li>
                        <li><a href="#" title="10" class="normal">10</a></li>
                        <li><a href="#" title="Next" class="normal">Next&gt;</a></li>
                        <li><a href="#" title="Last" class="normal">Last</a></li>
                    </ul>

                </div>


            </div>
            <!-- End Pagination -->

        </div>
        <!-- End Left Section -->

        <!-- Start Right Section -->
        <div class="rightsection">
            <br />
            <br />
            <br />

            <!-- Start Blog Widget -->
            <div class="blogwidgetstart">
                <!-- Start Advertising Widget -->
                <div class="widgettitle">
                    <h4>Publicidade</h4>
                </div>

                <div class="widgetbody">

                    <div class="blogadvertising">

                        <a href="#">
                            <img src="/App_Themes/eutoliso/images/advertising/themeadvertising.jpg" alt="Themeforest" /></a>
                        <a href="#">
                            <img src="/App_Themes/eutoliso/images/advertising/audioadvertising.jpg" alt="Audiojungle" /></a>
                        <a href="#">
                            <img src="/App_Themes/eutoliso/images/advertising/graphicadvertising.jpg" alt="Grahpicrive" /></a>
                        <a href="#">
                            <img src="/App_Themes/eutoliso/images/advertising/tutorialadvertising.jpg" alt="Tutsplus" /></a>

                    </div>

                </div>
                <!-- End Advertising Widget -->


            </div>
            <!-- End Blog Widget -->

            <!-- Start Blog Widget -->
            <div class="blogwidget">
                <!-- Start Categories Widget -->
                <div class="widgettitle">
                    <h4>Categorias</h4>
                </div>

                <div class="widgetbody">

                    <div class="blogcategories">

                        <ul>
                            <li><a href="#" title="All Blogs">Convívios</a></li>
                            <li><a href="#" title="All Blogs">Festas</a></li>
                            <li><a href="#" title="All Blogs">Serviços</a></li>
                            <li><a href="#" title="All Blogs">Todas as Categorias</a></li>
                        </ul>

                    </div>

                </div>
                <!-- End Categories Widget -->


            </div>
            <!-- End Blog Widget -->

            <!-- Start Blog Widget -->
            <div class="blogwidget">
                <!-- Start Categories Widget -->
                <div class="widgettitle">
                    <h4>Links Institucionais</h4>
                </div>

                <div class="widgetbody">

                    <div class="blogcategories">

                        <ul>
                            <li><a href="#" title="All Blogs">Câmera Municipal de Coimbra</a></li>
                            <li><a href="#" title="All Blogs">SEF - Serviços de Estrangeiros</a></li>
                        </ul>

                    </div>

                </div>
                <!-- End Categories Widget -->


            </div>
            <!-- End Blog Widget -->

        </div>
        <!-- End Right Section -->

    </div>
    <!-- End Main Body Wrap -->


</asp:Content>
<asp:Content ID="Content7" ContentPlaceHolderID="body_pos_central" runat="Server">
</asp:Content>
<asp:Content ID="Content8" ContentPlaceHolderID="body_pos_a_central" runat="Server">
</asp:Content>
<asp:Content ID="Content9" ContentPlaceHolderID="footer_twitter_realtime" runat="Server">
</asp:Content>
<asp:Content ID="Content10" ContentPlaceHolderID="footer_search" runat="Server">
</asp:Content>
<asp:Content ID="Content11" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
</asp:Content>
